﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class operate_changeAdminInfo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string admin_id = Request["admin_id"].ToString().Trim();
        string admin_name = Request["admin_name"].ToString().Trim();
        string admin_tel = Request["admin_tel"].ToString().Trim();

        string sql = "update tb_admin set admin_name ='" + admin_name + "' ,admin_tel ='" + admin_tel + "' where admin_id='" + admin_id + "'";
        int k = SqlServer.ExecuteNonQuery(sql);
        if (k > 0)
        {
            Response.Write(k.ToString());
        }
        else
        {
            Response.Write("0");
        }
        Response.End();
    }
}